<template>
  <el-dropdown
    class="axiom-dropdown"
    :trigger="trigger"
    :placement="placement"
    @command="$emit('command', $event)"
    v-bind="$attrs"
  >
    <slot />
    <template #dropdown>
      <slot name="dropdown" />
    </template>
  </el-dropdown>
</template>

<script setup>
defineOptions({
  name: 'AxiomDropdown'
});

defineProps({
  trigger: { type: String, default: 'click' },
  placement: { type: String, default: 'bottom' },
});

defineEmits(['command']);
</script> 